package org.finesys.ai.core;

import java.util.function.Consumer;

public interface SyncOrAsync<ResponseContent> {

    ResponseContent execute();

    AsyncResponseHandling onResponse(Consumer<ResponseContent> responseHandler, Consumer<Throwable> errorHandler);

}